package yang.learn.entity;

import java.io.Serializable;

public class ChatRecord implements Serializable {

    private int chat_id;
    private int user_id;
    private int contacts_id;
    private String chat_name;
    private String chat_context;

    public ChatRecord() {
    }

    public ChatRecord(int user_id, int contacts_id) {
        this.user_id = user_id;
        this.contacts_id = contacts_id;
    }
    public ChatRecord(int chat_id, int user_id, int contacts_id, String chat_name, String chat_context) {
        this.chat_id = chat_id;
        this.user_id = user_id;
        this.contacts_id = contacts_id;
        this.chat_name = chat_name;
        this.chat_context = chat_context;
    }

    @Override
    public String toString() {
        return "ChatRecord{" +
                "chat_id=" + chat_id +
                ", user_id=" + user_id +
                ", contacts_id=" + contacts_id +
                ", chat_name='" + chat_name + '\'' +
                ", chat_context='" + chat_context + '\'' +
                '}';
    }

    public int getChat_id() {
        return chat_id;
    }

    public void setChat_id(int chat_id) {
        this.chat_id = chat_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getContacts_id() {
        return contacts_id;
    }

    public void setContacts_id(int contacts_id) {
        this.contacts_id = contacts_id;
    }

    public String getChat_name() {
        return chat_name;
    }

    public void setChat_name(String chat_name) {
        this.chat_name = chat_name;
    }

    public String getChat_context() {
        return chat_context;
    }

    public void setChat_context(String chat_context) {
        this.chat_context = chat_context;
    }
}
